@import 'common';

#container {
    position: relative;
    background-color: #f1f1f1;
    padding-top: 50px;
    .content {
        width: 100%;
        max-width: 1260px;
        margin: 0 auto;
        #guide {
            padding-top: 15px;
            .group {
                height: 50px;
                border-bottom: 1px solid #D8D8D8;
                ul{
                    margin-bottom: 0;
                    li {
                        float: left;
                        position: relative;
                        margin-right: 20px;
                        font-size: 14px;
                        width: 130px;
                        height: 50px;
                        a {
                            color: #666;
                            display: block;
                            padding: 11px 10px 16px 10px;
                            &:hover{
                                text-decoration: none;
                            }
                            i {
                                display: inline-block;
                            }
                            .screde1{
                                position: relative;
                                display: inline-block;
                                height: 10px;
                                width: 10px;
                                transition: all 0.7s;
                                .screde{
                                    height: 0;
                                    width: 0;
                                    border: 5px solid transparent;
                                    border-top: 5px solid #555555;
                                    transition: all 1s; 
                                    position: absolute;
                                    top: 2.5px;
                                    right: 0;
                                }
                            }
                        }
                        .current {
                            transition: none;
                            width: 110px;
                            text-align: center;
                        }
                        &:hover .screde1{
                            transform: rotate(-180deg);
                        }
                        &:hover{
                            background: white;
                            box-shadow: 1px 2px 2px rgba(0,0,0,0.2);
                            border-radius: 0 0 6px 6px;
                        }
                        &:hover .sub{
                           display: block; 
                        }
                        .sub {
                            display: none;
                            position: absolute;
                            left: 0;
                            top: 44px;
                            z-index: 99;
                            width: 130px;
                            box-shadow: 1px 2px 2px rgba(0,0,0,0.2);
                            background-color: #fff;
                            overflow: hidden;
                            border-radius: 0 0 6px 6px;
                            li {
                                float: none;
                                margin: 0;
                                font-size: 12px;
                                height: inherit;
                                transition:all 0.5s; 
                                &:hover{
                                    background: #00c3b6;
                                }
                                &:hover a{
                                   color: white; 
                                }
                                a{
                                    padding: 12px 10px;
                                    text-indent: 20px;
                                    transition:all 0.6s;
                                }
                            }
                        }
                    }
                }
            }
        }
        .list {
            margin: 20px auto 30px auto;
            position: relative;
            height: auto;
            overflow: hidden;
            .article {
                width: 100%;
                float: left;
                ul {
                    margin-right: 360px;
                    background-color: #FFF;
                    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
                    li {
                        border-bottom: 1px solid #E5E5E5;
                        padding: 20px;
                        height: auto;
                        overflow: hidden;
                        color: #999;
                        position: relative;
                        &:hover{
                            background:  #F9F9F9;;
                        }
                        .item{
                            .thumb {
                                float: left;
                                width: 210px;
                                height: 135px;
                                overflow: hidden;
                                box-shadow: 0 1px 1px rgba(0,0,0,0.3);
                                a {
                                    color: #00c3b6;
                                    outline: none;
                                    cursor: pointer;
                                    transition: all 0.3s ease-out;
                                    text-decoration: none;
                                }
                            }
                            .item-main {
                                margin-left: 230px;
                                .title{
                                     a {
                                        font-size: 16px;
                                        color: #333;
                                        padding: 5px 50px 5px 0;
                                        display: inline-block;
                                        transition:all 0.5s; 
                                        &:hover{
                                            color: #00C3B6;
                                        }
                                    }
                                }
                                .meta{
                                    div {
                                        margin: -4px auto;
                                    }
                                    .cat{
                                        a {
                                            background-color: rgba(0,0,0,0.4);
                                            color: rgba(255,255,255,0.9);
                                            padding: 2px 4px;
                                            border-radius: 2px;
                                            font-family: "微软雅黑";
                                            font-size: 12px;
                                            transition:all 0.5s; 
                                            &:hover{
                                                background: black;
                                                text-decoration: none;
                                            }
                                        }
                                    }
                                    .tag-links {
                                        margin-left: 10px;
                                        i {
                                            font-style: normal;
                                            font-family: "微软雅黑";
                                        }
                                        a {
                                            color: #888;
                                            background-color: inherit;
                                            &:hover{
                                                background: white;
                                                text-decoration: underline;
                                            }
                                        }
                                    }
                                    .excerpt {
                                        margin: 17px auto;
                                        font-family: "微软雅黑";
                                        font-size: 12px;
                                    }
                                    .data {
                                        text-align: right;
                                        font-family: "微软雅黑";
                                        font-size: 12px;
                                        .time {
                                            float: left;
                                            color: #666;
                                            i {
                                                margin-right: 4px;
                                            }
                                        }
                                         span {
                                            margin-right: 7px;
                                            i {
                                                margin-right: 4px;
                                            }
                                        }
                                    }
                                    .author {
                                        position: absolute;
                                        right: 20px;
                                        top: 20px;
                                        a {
                                            display: block;
                                            width: 40px;
                                            height: 40px;
                                            border: 1px solid rgba(0,0,0,0.08);
                                            border-radius: 100%;
                                            overflow: hidden;
                                            img {
                                                max-width: 100%;
                                                height: auto;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
            #sidebar {
                width: 340px;
                float: left;
                margin-left: -340px;
                .widget {
                    background-color: #FFF;
                    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
                    margin-bottom: 20px;
                    .widget-title {
                        font-size: 14px;
                        padding: 15px 20px;
                        border-bottom: 1px solid #E5E5E5;
                        background-color: #F9F9F9;
                    }
                    ul{
                        li{
                            height: auto;
                            overflow: hidden;
                            padding: 15px 20px;
                            border-bottom: 1px solid #F2F2F2;
                            a {
                                color: #777;
                                font-family: "微软雅黑";
                                font-size: 12px;
                                img {
                                    max-width: 100%;
                                    height: auto;
                                }
                            }
                            .thumb {
                                width: 68px;
                                height: 68px;
                                border: 4px solid #FFF;
                                overflow: hidden;
                                margin-right: 10px;
                                float: left;
                                line-height: 1;
                                box-shadow: 0 1px 1px transparent;
                            }
                            span {
                                display: block;
                                margin-top: 5px;
                                a {
                                    color: #ea4c89;
                                }
                            }
                        }
                        li:last-child{
                            border-bottom: 0 none;
                        }
                    }
                }
                .sidabar-recommend{
                    .box {
                        padding: 20px;
                        background-color: #FFF;
                        text-align: center;
                    }
                }
                .new-comments{
                    .widget-title {
                        font-size: 14px;
                        font-family: "微软雅黑";
                        padding: 15px 20px;
                        border-bottom: 1px solid #E5E5E5;
                        background-color: #F9F9F9;
                    }
                    ul{
                        li{
                            a{
                                &:hover{
                                    text-decoration: none;
                                }
                            }
                            .thumb {
                                width: 50px;
                                height: 50px;
                                border-radius: 50px;
                            }
                            p{
                                strong {
                                    font-weight: normal;
                                    color: #00c3b6;
                                    padding-top: 7px;
                                    display: block;
                                }
                                span {
                                    display: block;
                                    margin-top: 5px;
                                }
                            }
                        }
                    }
                }
            }
        } 
    }
}

@media only screen and (min-width: 768px) and (max-width:1024px){
    #container{
        .content{
            #guide{
                width: 96%;
                margin: auto;
                margin-bottom: 20px;
            }
            .list{
                width: 96%;
                margin: auto;
                .article{
                    float: none;
                    ul{
                        width: 100%;
                        li{
                            width: 100%;
                        }
                    }
                }
                #sidebar{
                    float: none;
                    width: 100%;
                    margin-left: 0;
                }
            }
        }
    }
}

@media only screen and (min-width: 400px) and (max-width:768px) {
    #container{
        .content{
            #guide{
                width: 96%;
                margin: auto;
                margin-bottom: 20px;
            }
            .list{
                float: none;
                width: 96%;
                margin: auto;
                .article{
                    float: none;
                    ul{
                        width: 100%;
                        li{
                            width: 100%;
                            .item{
                                width: 100%;
                                .thumb{
                                    width: 24%;
                                    max-width: 210px;
                                    height: auto;
                                    float: none;
                                    display: inline-block;
                                    a{
                                        img{
                                            width: 100%;
                                            height: auto;
                                        }
                                    }
                                }
                                .item-main{
                                    margin-left: 0;
                                    float: right;
                                    width: 74%;
                                }
                            }
                        }
                    }
                }
                #sidebar{
                    float: none;
                    width: 100%;
                    margin-left: 0;
                }
            }
        }
    }
}

@media only screen and (max-width: 500px) {
    #container{
        .content{
            #guide{
                width: 96%;
                margin: auto;
                margin-bottom: 20px;
            }
            .list{
                width: 96%;
                margin: auto;
                .article{
                    float: none;
                    ul{
                        width: 100%;
                        li{
                            width: 100%;
                            .item{
                                width: 100%;
                                .thumb{
                                    float: none;
                                    width: 100%;
                                    max-width: 100%;
                                    height: auto;
                                    a{
                                        img{
                                            width: 100%;
                                            height: auto;
                                        }
                                    }
                                }
                                .item-main{
                                    float: none;
                                    width: 100%;
                                    height: auto;
                                    .meta{
                                        .author{
                                            display: none;
                                        }
                                    } 
                                }
                            }
                        }
                    }
                }
                #sidebar{
                    float: none;
                    width: 100%;
                    margin-left: 0;
                }
            }
        }
    }
}
